package com.space.school.service.impl;

import com.space.school.dao.RegisterDao;
import com.space.school.dao.impl.RegisterDaoImpl;
import com.space.school.service.RegisterService;

public class RegisterServiceImpl implements RegisterService {
    RegisterDao registerDao = new RegisterDaoImpl();
    @Override
    public boolean register(String username, String password) {
        return registerDao.register(username,password);
    }

    @Override
    public boolean usernameExists(String username) {
        return registerDao.usernameExists(username);
    }

    @Override
    public boolean passwordCheck(String password) {
        return registerDao.passwordCheck(password);
    }
}
